window: Update opaque region if background-color changes
authorBenjamin Otte <otte@redhat.com>
Fri, 13 Jul 2018 12:52:43 +0000 (14:52 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 13 Jul 2018 12:56:04 +0000 (14:56 +0200)
commit4456b068535c98c9edda7ce218787d2409f67697
tree5e8f91c04eddfb145aeaab3018de5aa91dbe43a6
parent2f72353e0e1951f52c076a021ec882e0fe4f620c
window: Update opaque region if background-color changes

The opaque region is only set when the background color is opaque. So
we need to do something about it when the background color changes.

However, in the case where a size allocation is going to happen, we
already do this update in size_allocate(), so in that case avoid doing
it twice.
gtk/gtkwindow.c